//专门用来配置vue
//1.webpack
//2.用来配置开发环境与生产环境
const config={
    publicPath:"./",
    devServer:{
        host:"127.0.0.1",
        port:"9999"
        /*
        //配置代理
        //如果在开发环境下面发生了跨域的请况，我们可以在webpack当中配置一个像这样的代理
        proxy:{
            //代理的目标
            "/maoyanApi":{
                //只要发现我请求的地址是以/maoyanApi开始的，那么就采用下面的配置
                target:"http://m.maoyan.com",
                changeOrigin:true,
                pathRewrite:{
                    "^/maoyanApi":""
                }
            },
            "/boxofficeMaoyan":{
                //只要发现我请求的地址是以/maoyanApi开始的，那么就采用下面的配置
                target:"https://box.maoyan.com",
                changeOrigin:true,
                pathRewrite:{
                    "^/boxofficeMaoyan":""
                }
            }
        }
        */
    }
}

module.exports=config;